#write in 2019,6,16
# write by lidabao
import requests
import re



def get():
    res = requests.get("https://www.jianshu.com/")
    res.encoding = res.apparent_encoding
    print(res.text[0:10])
    urls = re.findall(r'/p/\d[a-z0-9]{12}',res.text)
    print(urls)
get()
